(function($){
	$(function(){		
		$('.boxgrid').each(function(){
			var $caption = $(this).find('span.boxcaption');
			var pheight = $(this).height();
			$caption.css('top', pheight );
			
			$(this).hover(
				function(){
					$caption.stop(1);
					$caption.animate({ top: pheight - $caption.height() });
				},
				function(){
					$caption.stop(1);
					$caption.animate({ top: pheight	})
				}
			)
		});
	});
})(jQuery);
